package com.course_design.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class PerformanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PerformanceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andPerformanceidIsNull() {
            addCriterion("performanceId is null");
            return (Criteria) this;
        }

        public Criteria andPerformanceidIsNotNull() {
            addCriterion("performanceId is not null");
            return (Criteria) this;
        }

        public Criteria andPerformanceidEqualTo(Integer value) {
            addCriterion("performanceId =", value, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidNotEqualTo(Integer value) {
            addCriterion("performanceId <>", value, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidGreaterThan(Integer value) {
            addCriterion("performanceId >", value, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidGreaterThanOrEqualTo(Integer value) {
            addCriterion("performanceId >=", value, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidLessThan(Integer value) {
            addCriterion("performanceId <", value, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidLessThanOrEqualTo(Integer value) {
            addCriterion("performanceId <=", value, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidIn(List<Integer> values) {
            addCriterion("performanceId in", values, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidNotIn(List<Integer> values) {
            addCriterion("performanceId not in", values, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidBetween(Integer value1, Integer value2) {
            addCriterion("performanceId between", value1, value2, "performanceid");
            return (Criteria) this;
        }

        public Criteria andPerformanceidNotBetween(Integer value1, Integer value2) {
            addCriterion("performanceId not between", value1, value2, "performanceid");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoIsNull() {
            addCriterion("teacherInfo is null");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoIsNotNull() {
            addCriterion("teacherInfo is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoEqualTo(Integer value) {
            addCriterion("teacherInfo =", value, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoNotEqualTo(Integer value) {
            addCriterion("teacherInfo <>", value, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoGreaterThan(Integer value) {
            addCriterion("teacherInfo >", value, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacherInfo >=", value, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoLessThan(Integer value) {
            addCriterion("teacherInfo <", value, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoLessThanOrEqualTo(Integer value) {
            addCriterion("teacherInfo <=", value, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoIn(List<Integer> values) {
            addCriterion("teacherInfo in", values, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoNotIn(List<Integer> values) {
            addCriterion("teacherInfo not in", values, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoBetween(Integer value1, Integer value2) {
            addCriterion("teacherInfo between", value1, value2, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andTeacherinfoNotBetween(Integer value1, Integer value2) {
            addCriterion("teacherInfo not between", value1, value2, "teacherinfo");
            return (Criteria) this;
        }

        public Criteria andPeriodIsNull() {
            addCriterion("period is null");
            return (Criteria) this;
        }

        public Criteria andPeriodIsNotNull() {
            addCriterion("period is not null");
            return (Criteria) this;
        }

        public Criteria andPeriodEqualTo(Integer value) {
            addCriterion("period =", value, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodNotEqualTo(Integer value) {
            addCriterion("period <>", value, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodGreaterThan(Integer value) {
            addCriterion("period >", value, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodGreaterThanOrEqualTo(Integer value) {
            addCriterion("period >=", value, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodLessThan(Integer value) {
            addCriterion("period <", value, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodLessThanOrEqualTo(Integer value) {
            addCriterion("period <=", value, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodIn(List<Integer> values) {
            addCriterion("period in", values, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodNotIn(List<Integer> values) {
            addCriterion("period not in", values, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodBetween(Integer value1, Integer value2) {
            addCriterion("period between", value1, value2, "period");
            return (Criteria) this;
        }

        public Criteria andPeriodNotBetween(Integer value1, Integer value2) {
            addCriterion("period not between", value1, value2, "period");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterionForJDBCDate("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterionForJDBCDate("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterionForJDBCDate("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterionForJDBCDate("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Byte value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Byte value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Byte value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Byte value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Byte value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Byte> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Byte> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Byte value1, Byte value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andClassinfoIsNull() {
            addCriterion("classinfo is null");
            return (Criteria) this;
        }

        public Criteria andClassinfoIsNotNull() {
            addCriterion("classinfo is not null");
            return (Criteria) this;
        }

        public Criteria andClassinfoEqualTo(Integer value) {
            addCriterion("classinfo =", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoNotEqualTo(Integer value) {
            addCriterion("classinfo <>", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoGreaterThan(Integer value) {
            addCriterion("classinfo >", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoGreaterThanOrEqualTo(Integer value) {
            addCriterion("classinfo >=", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoLessThan(Integer value) {
            addCriterion("classinfo <", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoLessThanOrEqualTo(Integer value) {
            addCriterion("classinfo <=", value, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoIn(List<Integer> values) {
            addCriterion("classinfo in", values, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoNotIn(List<Integer> values) {
            addCriterion("classinfo not in", values, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoBetween(Integer value1, Integer value2) {
            addCriterion("classinfo between", value1, value2, "classinfo");
            return (Criteria) this;
        }

        public Criteria andClassinfoNotBetween(Integer value1, Integer value2) {
            addCriterion("classinfo not between", value1, value2, "classinfo");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}